package com.xuhai.blog.admin.service;

import com.xuhai.blog.admin.entity.ExpiresEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuhai.blog.common.util.ResultJson;

/**
 * <p>
 * 登录有效期表 服务类
 * </p>
 *
 * @author 机蜂
 * @since 2022-02-08
 */
public interface ExpiresService extends IService<ExpiresEntity> {
    ResultJson saveToken(Integer userId);
    void logout(Integer userId);
    ExpiresEntity getByToken(String token);
}
